#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
    int n = 0;
    scanf("%d", &n);
    int x = 0;
    int count = 0;
    int i = 0;
    int z = n;
    int sum = 0;
    for (i = 0; i < n; i++)
    {
        scanf("%d", &x);
        if (x < 0)
        {
            count++;
            z--;
        }
        else if (x > 0)
            sum += x;
        else
            z--;
    }
    float average = 0.0;
    if (z == 0)
    {
        average = 0.0;
    }
    else
    {
        average = sum * 1.0 / z;
    }
    printf("%d %.1f", count, average);
    return 0;
}

